package com.yonyou.pmclouds.team.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.team.entity.TeamEnterpriseVO;
import com.yonyou.pmclouds.team.entity.TeamMemberVO;

public interface TeamMemberMaintain {

    /**
     * 添加项目团队成员
     */
    String[] addMembersToProject(String projectid, TeamMemberVO[] mems) throws BusinessException;

    /**
     * 将某个人移除出项目团队
     */
    String  removeFromTeam(String pkTeamMember, String changeFlag) throws BusinessException;

    /**
     * 
     * 方法功能描述：添加项目团队。
     * 
     * <b>参数说明</b>
     * @param memberVOs
     * @return
     * @throws BusinessException
     * @author zhangwce
     * @time 2018年1月21日 下午7:58:25
     */
    TeamMemberVO[] addMembers(TeamMemberVO[] memberVOs) throws BusinessException;

    /**
     *  项目编辑时更新团队成员接口
     *
     * @throws BusinessException
     */
    void updateTeamMemberForProject(String pkProject,TeamMemberVO[] updateMemberVOs,TeamMemberVO[] insertMemberVOs, TeamMemberVO[] deleteMemberVOs, TeamEnterpriseVO[] insertEnterpriseVOs, TeamEnterpriseVO[] updateEnterpriseVOs) throws BusinessException;

}
